package com.henry.veterinary;

import javafx.beans.property.SimpleStringProperty;

public class PatientProperty {
    private final SimpleStringProperty time;
    private final SimpleStringProperty ID;
    private final SimpleStringProperty name;
    private final SimpleStringProperty type;
    private final SimpleStringProperty age;
    private final SimpleStringProperty sex;

    public PatientProperty(String time, Animal animal) {
        this.time   = new SimpleStringProperty(time);
        this.ID     = new SimpleStringProperty(animal.getID());
        this.name   = new SimpleStringProperty(animal.getName());
        this.type   = new SimpleStringProperty(animal.getType());
        this.age    = new SimpleStringProperty(animal.getAge());
        this.sex    = new SimpleStringProperty(animal.getSex());
    }

    public String getTime() {
        return time.get();
    }

    public SimpleStringProperty timeProperty() {
        return time;
    }

    public void setTime(String time) {
        this.time.set(time);
    }

    public String getID() {
        return ID.get();
    }

    public SimpleStringProperty IDProperty() {
        return ID;
    }

    public void setID(String ID) {
        this.ID.set(ID);
    }

    public String getName() {
        return name.get();
    }

    public SimpleStringProperty nameProperty() {
        return name;
    }

    public void setName(String name) {
        this.name.set(name);
    }

    public String getType() {
        return type.get();
    }

    public SimpleStringProperty typeProperty() {
        return type;
    }

    public void setType(String type) {
        this.type.set(type);
    }

    public String getAge() {
        return age.get();
    }

    public SimpleStringProperty ageProperty() {
        return age;
    }

    public void setAge(String age) {
        this.age.set(age);
    }

    public String getSex() {
        return sex.get();
    }

    public SimpleStringProperty sexProperty() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex.set(sex);
    }
}